import {EmployeeModel} from "@/model/EmployeeModel";
import request from '@/utils/request'

export default class SystemApi {

    public static getServerTime() {
        return new Promise((resolve, reject) => {
            request({
                url: `/sse/heartbeat/connect`,
                method: 'GET',
            }).then((res: any) => {
                if (res.code === 200) {
                    resolve(res.data)
                } else {
                    reject(res)
                }
            }, ()=> {reject()})
        })
    }
}